package cc.flyflow.web;

import cc.flyflow.common.utils.ColorfulUtil;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

@Slf4j
@MapperScan(basePackages = {"cc.flyflow.biz.mapper", "cc.flyflow.biz.*.mapper"})
@SpringBootApplication(scanBasePackages = {"cc.flyflow"})
@EnableCaching
public class WebApp
{
    public static void main(String[] args)
    {
        SpringApplication.run(WebApp.class, args);
        log.info("=====================Web App  Start========================");
        banner();
    }

    public static void banner()
    {
        System.out.print(ColorfulUtil.GREEN + """
                o--o o      o--o o
                O-o  | o  o O-o  | o--o o   o   o
                |    | |  | |    | |  | | / | /
                o    o o--O o    o o--o o   o
                       o-/""");
        System.out.println(ColorfulUtil.RESET + "    ::v.1.1.0    Start...");
        System.out.println(ColorfulUtil.GREEN + "￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣" + ColorfulUtil.RESET);
    }

}
